package main

import (
	"fmt"
	"sync"
	"time"
)

var testLock sync.RWMutex

func usePool(i int32) {
	StartLock(i)
	if i == 3 {
		panic("err")
	}
}

func StartLock(i int32) {
	defer func() {
		fmt.Println("1111", i)
	}()
	return
}

func standard(i int32) {
	defer func() {
		if err := recover(); err != nil {
			fmt.Println("err", err)
		}
	}()
	usePool(i)
}

func main() {
	for i := 0; i < 10; i++ {
		go standard(int32(i))
	}

	time.Sleep(time.Second * 10)
}

/*
 */
